# init
print("请输入一个整数")
num = int(input())
nega = 1
if num<0:
    num = -1 * num
    nega = -1
    
list = []
result = 0

# record
while num>0:
    temp = num
    num = num // 10
    temp = temp - num*10
    list.insert(0,temp)

# output
count = 0
while list != []:
    result = result + list.pop(0) * (10 ** count)
    count = count + 1
result = result * nega
print(f"你得到的数是：{result}")
